﻿#region <!-- Using Directives -->

using System;
using System.Windows.Controls;

using WordSharpDev.Extensions;

#endregion

namespace WordSharpDev.Controls
{
	public partial class StatusPane : UserControl
	{
		public StatusPane()
		{
			InitializeComponent();
		}

		public void InitMessage(String p_Message)
		{
			MainContent.Text = String.Format("{1:HH:mm:ss}\r\n{0}", p_Message.Indent("\t"), DateTime.Now);
		}

		public void AppendMessage(String p_Message, Int32 p_Blanks = 0)
		{
			for (var i = 0; i <= p_Blanks; i++) MainContent.Text += "\r\n";

			MainContent.Text += String.Format("{1:HH:mm:ss}\r\n{0}", p_Message.Indent("\t"), DateTime.Now);
		}
	}
}